<?php


namespace app\shop\model\config;


use app\shop\model\user\UserModel;
use think\Model;
use think\model\concern\SoftDelete;

class TypeDesignModel extends Model
{
    use SoftDelete;
     protected $defaultSoftDelete = 0;
    protected $name = 'type_design';

    protected $autoWriteTimestamp = true;

    function user()
    {
        return $this->hasOne(UserModel::class, 'user_id', 'user_id');
    }

    function user1()
    {
        return $this->hasOne(UserModel::class, 'user_id', 'user_id');
    }
}